/**
 * @version 2007-5-17
 * @author xalinx at gmail dot com
 */
package org.nanhill.commons.dbutil.builder;

import java.util.HashMap;
import java.util.Map;

/**
 * @version 2007-5-17
 * @author xalinx at gmail dot com
 * 
 */
public class NameMapper {
	private Map<String, String> tableNames = new HashMap<String, String>();

	public String getTableName(String clz) {
		return tableNames.get(clz);
	}

	public void addTableName(String className, String name) {
		tableNames.put(className, name);
	}

	public void setTableNames(Map<String, String> tableNameMap) {
		this.tableNames = tableNameMap;
	}

}
